package cz.muni.fi.pa165.sportclubmanager.client;

import java.net.Authenticator;
import java.net.PasswordAuthentication;
import javax.swing.SwingUtilities;

public class Main {

    private static javax.swing.JFrame window;

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                Authenticator.setDefault(new Authenticator() {
                    @Override
                    protected PasswordAuthentication getPasswordAuthentication() {
                        return new PasswordAuthentication(
                                "rest",
                                "rest".toCharArray());
                    }
                });
                window = new MainWindow();
            }
        });
    }

    public static javax.swing.JFrame getMainWindow() {
        return window;
    }
}
